import {Demo} from "./demo";
//amd模式下 import Vue from "vue" 编译出来的js文件无法加载
import * as Vue from "vue";

new Demo().init()

Vue.component('my-component', {
    template: '<div>A custom component!</div>'
})
// 创建根实例
new Vue({
    el: '#comp'
})

new Vue({
    el: '#comp1',
    components: {
        // <my-component> 将只在父模板可用
            'my-component': {
                template: '<div>A custom component1!</div>'
            }
    }
})

let app = new Vue({
    el: '#app1',
    data: {
        message1: 'Hello Vue!'
    }
})
